<template>
    <div>
        <div class="title">周末去哪儿</div>
        <ul>
            <li class="item" v-for="item of weekendList" :key="item.id">
                <div class="wrapper">
                    <img class="item-img" :src="item.imgUrl" alt="">
                </div>
                <div class="item-info">
                    <p class="item-title">{{item.title}}</p>
                    <p class="item-desc">{{item.desc}}</p>
                </div>
            </li>
        </ul>
    </div>
</template>

<script>
export default {
  name: 'weekend',
  props: {
    weekendList: Array
  }
}
</script>

<style lang="stylus"  scoped>
  @import '~styles/mixins.styl'
    .title
      padding-left :.2rem
      margin-top : .2rem
      font-size :.3rem
      line-height .8rem
      background: #808080
      color :#fff
    .item
        background :#e9e7ef
        margin-bottom  :0.1rem
        height :3.2rem
        .wrapper
          text-align :center
          .item-img
            height :2rem
            margin-top :0.2rem
            width :94%
        .item-info
            width :90%
            margin : 0 auto
            .item-title
              line-height :.5rem
              font-size :.29rem
              font-weight :600
              ellipsis()
            .item-desc
              line-height :.35rem
              color :#808080
              ellipsis()

</style>
